/**
 * 
 */
package edu.cmu.lti.lm.dt;

/**
 * @author qing
 *
 */
public class TrigramFeature extends Feature {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2657186947739318052L;

	/* (non-Javadoc)
	 * @see edu.cmu.lti.lm.dt.Feature#getValue(edu.cmu.lti.lm.dt.History)
	 */
	@Override
	public String getValue(History h) {
		if(h.size()==1)
			return "<s>";
		return h.get(1);
	}

	@Override
	public String getName() {
		return "The second preceding word is ";
	}

}
